package cn.yuanqiao.feignService;

import cn.yuanqiao.common.core.controller.BaseController;
import cn.yuanqiao.common.core.domain.AjaxResult;
import cn.yuanqiao.common.core.domain.R;
import cn.yuanqiao.system.service.ISysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName: RemoteConfigService
 * @Description: 类的描述
 * @author: lihuahua
 * @date: 2024/7/9 9:37
 * @Blog: huahuacoco.top
 */

@Service
public class RemoteConfigService extends BaseController {

    @Autowired
    private ISysConfigService configService;

    public AjaxResult getConfigKey( String configKey)
    {
        return success(configService.selectConfigByKey(configKey));
    }

    public R configKeyTenantCode(String configKey,String tenantCode)
    {
        return R.ok(configService.selectConfigByKeyTenantCode(configKey,tenantCode));
    }
}
